package zhu.common.dao;

import java.util.List;

//最底层DAO接口，提供对数据库进行增删查改操作的接口*/
public interface IBaseDAO {
	public void save(Object object);

	public void delete(Object object);

	public void update(Object object);

	public Object merge(Object object);
	
	public List find(String where);

	public void saveOrUpdate(Object object);

	//兼容组合键ID查询
	public Object findById(Class cla, Object id);
	
	//按属性查找
	public List findByProperty(String propertyName, Object value,String instanceType) ;
	
	//按属性查找一条记录
	public Object findByPropertyUnique(String propertyName, Object value,String instanceType) ;

}